﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace eSYSU.Model
{
    /// <summary>
    /// 新闻评论模型类
    /// </summary>
    [Serializable]
    public class NewsComment
    {
        public NewsComment()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }

        private int _id;
        private int _newsid;
        private string _username;
        private DateTime _posttime;
        private string _content;



        /// <summary>
        /// 评论编号
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }

        /// <summary>
        /// 新闻编号
        /// </summary>
        public int newsid
        {
            get { return _newsid; }
            set { _newsid = value; }
        }

        /// <summary>
        /// 评论人
        /// </summary>
        public string username
        {
            set { _username = value; }
            get { return _username; }
        }

        /// <summary>
        /// 评论内容
        /// </summary>
        public string content
        {
            set { _content = value; }
            get { return _content; }
        }

        /// <summary>
        /// 评论发表时间
        /// </summary>
        public DateTime posttime
        {
            set { _posttime = value; }
            get { return _posttime; }
        }
    }
}